#include <iostream>
#include <iostream>
#include <string>

#include "httpclient.h"

HttpClient* client = new HttpClient();


int main(int argc, char** argv) {

    std::string gatewayhost;

    std::string gateway_server = "localhost";
    std::string gateway_port = "10185";
    //std::string gateway_url = "demo";
    std::string gateway_url = "demo?sample_number=50";

    gatewayhost = std::string("http://");
    gatewayhost.append(gateway_server).append(":").append(gateway_port).append("/").append(gateway_url);



    std::string host = gatewayhost;
    std::string post = "{\"sample_number\": 20}";
    std::cout << "[INFO]: " << host << "\n" << post << "\n" << std::endl;
    

    std::string resp;
    //int code = client->Post(host, post, resp);
    int code = client->Get(host, resp);
    std::cout << "[INFO]: " << resp << std::endl;

}

